package com.yesep.learn.mqtt.util;

import com.yesep.learn.mqtt.server.common.Constants;

import io.netty.channel.Channel;
import io.netty.util.AttributeKey;

/**
 * @Description: 
 */
public class ChannelUtil {
	public static String getClientId(Channel channel) {
		String clientId = (String) channel.attr(AttributeKey.valueOf(Constants.ATTR_CLIENT_ID)).get();
		return clientId;
	}
}
